import request from '@/utils/request'

export default {

  addReply(replyAddRequest) {
    return request({
      url: '/teacher/reply',
      method: 'post',
      data: replyAddRequest
    })
  },
  getAllReplys(replyPageRequest) {
    return request({
      url: '/teacher/reply/list',
      method: 'post',
      data: replyPageRequest
    })
  },
  getAllGroups() {
    return request({
      url: '/teacher/reply/group',
      method: 'get'
    })
  },
  getAllClass() {
    return request({
      url: '/teacher/reply/clazz',
      method: 'get'
    })
  },
  getAllStudents() {
    return request({
      url: '/teacher/reply/student',
      method: 'get'
    })
  },
  getReplyById(replyid) {
    return request({
      url: '/teacher/reply/' + replyid,
      method: 'get'
    })
  },
  getDataById(replyid) {
    return request({
      url: '/teacher/reply/data/' + replyid,
      method: 'get'
    })
  },
  getListById(replyid, replyInfoPageRequest) {
    return request({
      url: '/teacher/reply/list/' + replyid,
      method: 'post',
      data: replyInfoPageRequest
    })
  },
  getScoreById(replyid, studentid) {
    return request({
      url: '/teacher/reply/list/' + replyid + '/' + studentid,
      method: 'get'
    })
  },
  getGroupById(groupid) {
    return request({
      url: '/teacher/reply/group/' + groupid,
      method: 'get'
    })
  },
  remindInline(replyid) {
    return request({
      url: '/teacher/reply/remind/' + replyid,
      method: 'post'
    })
  },
  beginReply(replyId, studentId) {
    return request({
      url: '/teacher/reply/begin/' + replyId + '/' + studentId,
      method: 'post'
    })
  },
  pushMark(replyId, studentId) {
    return request({
      url: '/teacher/reply/push/' + replyId + '/' + studentId,
      method: 'post'
    })
  },
  mark(markRequest) {
    return request({
      url: '/teacher/reply/mark',
      method: 'post',
      data: markRequest
    })
  },
  analyseScale(replyid) {
    return request({
      url: '/teacher/reply/analyse/scale/' + replyid,
      method: 'post'
    })
  },
  analyseStudent(replyid, studentid) {
    return request({
      url: '/teacher/reply/analyse/student/' + replyid + '/' + studentid,
      method: 'post'
    })
  }
}
